package common

type Window struct {
	Row uint16
	Col uint16
}

//func TerminalWindowSize() (Window, error) {
//	win := Window{0, 0}
//	res, _, err := syscall.Syscall(syscall.SYS_IOCTL,
//		uintptr(syscall.Stdin),
//		uintptr(syscall.TIOCGWINSZ), //此参数,不同的操作系统可能不一样,例如:TIOCGWINSZ_OSX
//		uintptr(unsafe.Pointer(&win)),
//	)
//	if int(res) == -1 {
//		return Window{0, 0}, err
//	}
//	return win, nil
//}
